Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an extra scenario to illustrate the delegation "latency" #1137

Merged
merged 3 commits into from
Dec 9, 2019

Conversation

KtorZ
Copy link
Member

@KtorZ KtorZ commented Dec 6, 2019

Issue Number

#904

Overview

  • I have added an extra scenario regarding rewards behavior described below

Comments

At epoch e: Join stake pool P1
At epoch e+1: Quit stake pool P1
At epoch e+2: Stake is being delegated to P1
At epoch e+3: Reward is earned from the delegation in e+2

@KtorZ KtorZ requested a review from piotr-iohk December 6, 2019 10:41
@KtorZ KtorZ self-assigned this Dec 6, 2019
@KtorZ KtorZ force-pushed the KtorZ/904/delegate-quit-earn-money branch from 411fc25 to fa090b0 Compare December 6, 2019 10:42
request @ApiWallet ctx (getWalletEp w) Default Empty >>= flip verify
[ expectFieldSatisfy balanceReward (> 0)
]

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe it would be worth also to waitForNextEpoch ctx after the last request/assertion and make sure that the rewards are still the same?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agree.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See 48ca283

@KtorZ KtorZ force-pushed the KtorZ/904/delegate-quit-earn-money branch from e5ff524 to 48ca283 Compare December 6, 2019 13:12
Copy link
Contributor

@piotr-iohk piotr-iohk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@KtorZ
Copy link
Member Author

KtorZ commented Dec 9, 2019

bors r+

iohk-bors bot added a commit that referenced this pull request Dec 9, 2019
1137: Add an extra scenario to illustrate the delegation "latency" r=KtorZ a=KtorZ

# Issue Number

<!-- Put here a reference to the issue this PR relates to and which requirements it tackles -->

#904 

# Overview

<!-- Detail in a few bullet points the work accomplished in this PR -->

- [x] I have added an extra scenario regarding rewards behavior described below

# Comments

<!-- Additional comments or screenshots to attach if any -->

At epoch e: Join stake pool P1
At epoch e+1: Quit stake pool P1
At epoch e+2: Stake is being delegated to P1
At epoch e+3: Reward is earned from the delegation in e+2


<!-- 
Don't forget to:

 ✓ Self-review your changes to make sure nothing unexpected slipped through
 ✓ Assign yourself to the PR
 ✓ Assign one or several reviewer(s)
 ✓ Once created, link this PR to its corresponding ticket
 ✓ Assign the PR to a corresponding milestone
 ✓ Acknowledge any changes required to the Wiki
-->


Co-authored-by: KtorZ <matthias.benkort@gmail.com>
@iohk-bors
Copy link
Contributor

iohk-bors bot commented Dec 9, 2019

Build failed

@KtorZ
Copy link
Member Author

KtorZ commented Dec 9, 2019

bors r+

@KtorZ
Copy link
Member Author

KtorZ commented Dec 9, 2019

bors r-

@iohk-bors
Copy link
Contributor

iohk-bors bot commented Dec 9, 2019

Canceled

At epoch e: Join stake pool P1
At epoch e+1: Quit stake pool P1
At epoch e+2: Stake is being delegated to P1
At epoch e+3: Reward is earned from the delegation in e+2
@KtorZ KtorZ force-pushed the KtorZ/904/delegate-quit-earn-money branch from 48ca283 to b70ee87 Compare December 9, 2019 17:01
@KtorZ
Copy link
Member Author

KtorZ commented Dec 9, 2019

bors r+

iohk-bors bot added a commit that referenced this pull request Dec 9, 2019
1137: Add an extra scenario to illustrate the delegation "latency" r=KtorZ a=KtorZ

# Issue Number

<!-- Put here a reference to the issue this PR relates to and which requirements it tackles -->

#904 

# Overview

<!-- Detail in a few bullet points the work accomplished in this PR -->

- [x] I have added an extra scenario regarding rewards behavior described below

# Comments

<!-- Additional comments or screenshots to attach if any -->

At epoch e: Join stake pool P1
At epoch e+1: Quit stake pool P1
At epoch e+2: Stake is being delegated to P1
At epoch e+3: Reward is earned from the delegation in e+2


<!-- 
Don't forget to:

 ✓ Self-review your changes to make sure nothing unexpected slipped through
 ✓ Assign yourself to the PR
 ✓ Assign one or several reviewer(s)
 ✓ Once created, link this PR to its corresponding ticket
 ✓ Assign the PR to a corresponding milestone
 ✓ Acknowledge any changes required to the Wiki
-->


Co-authored-by: KtorZ <matthias.benkort@gmail.com>
@iohk-bors
Copy link
Contributor

iohk-bors bot commented Dec 9, 2019

Build succeeded

@iohk-bors iohk-bors bot merged commit b70ee87 into master Dec 9, 2019
@KtorZ KtorZ deleted the KtorZ/904/delegate-quit-earn-money branch December 9, 2019 17:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants